import request from '@/utils/request'

// 获得API 访问日志分页
export function getTableList(data) {
  return request({
    url: '/member/praxis-project/page',
    method: 'post',
    data
  })
}

// 创建 /member/praxis-project/create
export function createApi(data) {
  return request({
    url: '/member/praxis-project/create',
    method: 'post',
    data
  })
}

// 根据ID获得项目
export function getProDetail(id) {
  return request({
    url: '/member/praxis-project/get?id=' + id,
    method: 'get'
  })
}

// /member/praxis-project/getPraxisProjectTypeList
export function getProTypes() {
  return request({
    url: '/member/praxis-project/getPraxisProjectTypeList'
  })
}

//
export function editApi(data) {
  return request({
    url: '/member/praxis-project/update',
    method: 'post',
    data
  })
}

// /member/praxis-project/submitPraxisProject
export function pushApi(params) {
  return request({
    url: '/member/praxis-project/submitPraxisProject',
    method: 'get',
    params
  })
}

//
export function deleteApi(params) {
  return request({
    url: '/member/praxis-project/delete',
    method: 'delete',
    params
  })
}

//
export function revertApi(params) {
  return request({
    url: '/member/praxis-project/revert',
    method: 'put',
    params
  })
}

//
export function recordApi(params) {
  return request({
    url: '/member/praxis-project/getRecordByProjectId',
    method: 'put',
    params
  })
}

export function getEntryInfoPageByProjectId(data) {
  return request({
    url: '/member/entry-info/getEntryInfoPageByProjectId',
    method: 'post',
    data
  })
}

export function getNextScheduleByProjectId(params) {
  return request({
    url: '/member/entry-info/getNextScheduleByProjectId',
    method: 'get',
    params
  })
}

// /member/entry-info/updateRateScore
export function updateRateScore(data) {
  return request({
    url: '/member/entry-info/updateRateScore',
    method: 'post',
    data
  })
}

// 批量入選
export function batchUpdateStatus(data) {
  return request({
    url: '/member/entry-info/batchUpdateStatus',
    method: 'post',
    data
  })
}

// /member/entry-info/getEntryInfoById
export function viewApi(params) {
  return request({
    url: '/member/entry-info/getEntryInfoById',
    method: 'get',
    params
  })
}

export function createResult(data) {
  return request({
    url: '/member/praxis-result/create',
    method: 'post',
    data
  })
}

// member/project-result/page
export function projectTableList(data) {
  return request({
    url: '/member/praxis-result/page',
    method: 'post',
    data
  })
}

//
export function projectSelectList(params) {
  return request({
    url: '/member/praxis-project/getPraxisProjectList',
    method: 'get',
    params
  })
}

//
export function getResultDetail(params) {
  return request({
    url: '/member/praxis-result/get',
    method: 'get',
    params
  })
}

// /member/project-result/delete
export function deleteResult(params) {
  return request({
    url: '/member/praxis-result/delete',
    method: 'delete',
    params
  })
}

export function getFeedBackPageByProjectId(data) {
  return request({
    url: '/member/praxis-project/getFeedBackPageByProjectId',
    method: 'post',
    data
  })
}

//
export function updateResult(data) {
  return request({
    url: '/member/praxis-result/update',
    method: 'put',
    data
  })
}

// 审核
export function examineAudit(data) {
  return request({
    url: '/member/praxis-result/examine',
    method: 'put',
    data
  })
}

export function resultPushApi(data) {
  return request({
    url: '/member/praxis-result/release',
    method: 'put',
    data
  })
}
